import Team from "../pages/Team.vue";
import Index from "../pages/Index.vue";
import User from "../pages/User.vue";
import Search from "../pages/Search.vue";
import UserEdit from "../pages/UserEdit.vue"
import UserLogin from "../pages/UserLogin.vue";
import UserUpdate from "../pages/UserUpdate.vue";
import UserTeamJoin from "../pages/UserTeamJoin.vue";
import UserTeamCreate from "../pages/UserTeamCreate.vue";
import SearchResult from "../pages/SearchResult.vue";
import TeamAdd from "../pages/TeamAdd.vue";
import TeamUpdate from "../pages/TeamUpdate.vue";
import UserLogon from "../pages/UserLogon.vue"

// 定义一些路由
const routes = [
    { path: '/',component: Index },
    { path: '/team',title:'寻找队伍',  component: Team },
    { path: '/team/update',title:'更新队伍', component: TeamUpdate },
    { path: '/team/add',title:'创建队伍', component: TeamAdd },
    { path: '/user',title:'个人信息', component: User },
    { path: '/search',title:'搜索用户', component: Search },
    { path: '/user/list',title:'用户列表', component: SearchResult },
    { path: '/user/edit',title:'编辑信息', component: UserEdit },
    { path: '/user/login',title:'用户登录', component: UserLogin },
    { path: '/user/logon',title:'用户注册', component: UserLogon },
    { path: '/user/update',title:'更新信息', component: UserUpdate },
    { path: '/user/team/join',title:'加入队伍', component: UserTeamJoin },
    { path: '/user/team/create',title:'创建队伍', component: UserTeamCreate },
  ]

export default routes;